package com.datawin.taotaocheche.bean;

import com.superrecycleview.superlibrary.sidebar.bean.BaseIndexPinyinBean;

import java.io.Serializable;

/**
 * Created by admin on 2017/12/7.
 */

public class CityInfo extends BaseIndexPinyinBean implements Serializable {

    /**
     * id : 65
     * level : 1
     * parentId : 0
     * rank : 0
     * treePath : null
     * fullName : 太原
     */
    private String name;// 城市的名称
    private boolean isTop;// 是否是最上面 不需要被转化成拼音
    private String id;
    private int level;
    private String parentId;
    private int rank;
    private String treePath;
    private String fullName;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isTop() {
        return isTop;
    }

    public void setTop(boolean top) {
        isTop = top;
    }

    @Override
    public String getTarget() {
        return treePath;
    }

    @Override
    public boolean isNeedToPinyin() {
        return !isTop;
    }

    @Override
    public boolean isShowSuspension() {
        return !isTop;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    public String getTreePath() {
        return treePath;
    }

    public void setTreePath(String treePath) {
        this.treePath = treePath;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }
}
